exports.staff_collection = '1order_staff'
exports.obd_collection = '1order_list'
exports.workorder_collection = '1OBDWorkOrder'
exports.obd_modify_collection = '1obd_modify_log'
exports.staff_log = '1staff_log'

// exports.staff_collection = '1order_staff_test'
// exports.obd_collection = '1order_list_test'
// exports.workorder_collection = '1OBDWorkOrder_test'
// exports.obd_modify_collection = '1obd_modify_log_test'

exports.grid_collection = '1grid_info'
exports.region_collection = '1region_info'
const envId = 'cnycharts-4giqg3kn6179e262';
const secret = {
  secretId: 'AKID8X3tkbU4iVPPQOaxV3yZJ5ernnIrkbci',
  secretKey: 'EcE2GWlzGQhAeJ4lN7sr1If0gXME0gUG',
}

const cloudbase = require("@cloudbase/node-sdk");
const app = cloudbase.init({
  ...secret,
  env: envId,
  timeout: 300000
});
const dbObj = app.database();
exports.command = dbObj.command
exports.db = app.database();

const CloudBase = require("@cloudbase/manager-node");


let dbMgr = new CloudBase({ ...secret, envId })
exports.dbMgr = dbMgr